﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace PROJECT_BOMBER.BLL
{
    public class VentiloAnimation : DefaultAnimation
    {

        #region Constructeur

        public VentiloAnimation(Ventilateur ventilo) : base(ventilo) { }

        #endregion

        #region Animation : Air

        AnimationSprite _air;
        public AnimationSprite Air()
        {
            return _air;
        }

        public void Air(AnimationSprite sprite)
        {
            _air = sprite;
        }


        public void Air(AnimationDefinition anim, Game game)
        {
            Element.Case = new Rectangle((int)Element.Positionbase.X, (int)Element.Positionbase.Y, Element.Width, Element.Height);
            _air = new AnimationSprite(game, anim);
            _air.Position = new Point((int)Element.Positionbase.X, (int)Element.Positionbase.Y);
        }

        #endregion
    }
}
